package com.yz.center.common.result;

import lombok.Getter;

@Getter
public enum ResultStatus {
    /***/
    SUCCESS(20000, "成功"),
    save_no_exist(3000, "查询失败"),
    update_no_exist(3000, "更新失败"),
    del_no_exist(3000, "删除失败"),
    add_no_exist(3000, "新增失败"),
    SYS_ERROR(40000, "系统错误"),
    USER_PARAM_ERROR(40001, "用户名格式不正确"),

    USER_NO_EXIST(40002, "用户名不存在"),
    USER_NO_ERROR(40003, "用户名或密码不存在"),
    USER_AND_ERROR(40004, "禁用状态"),

    USER_PASSWORD_ERROR(40005, "密码错误"),

    ADD_FAILED(40006, "新增失败"),

    UPDATE_FAIL(4007, "更新失败"),
    CREATE_FAILED(4008, "数据异常"),
    NOT_FOUND(4009, "数据不存在"),

    NO_DRUG(4010,"医用品信息不存在"),

    DRUG_REPETITION(4011,"库存中医用品重复"),

    DRUG_NO_NUMBER(4012,"医用品库存不足");

    final int code;
    final String msg;

    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
